<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Admin
 *
 * @author Soul_man
 */
class Starter extends X3_Component {
    
    public function init() {
        $this->addTrigger('onStartApp');
        $this->addTrigger('onRender');
        $this->addTrigger('onEndApp');
    }
    
    public function onStartApp($controller,$action) {
        X3::app()->theme = array(
            'mainheader'=>'/images/header.gif',
            'header'=>'/images/hr01.png',
            'menutile'=>'/images/menutile.gif',
            'menuheader'=>'/images/menuheader.gif',
            'cover'=>'/images/page_background.jpg',
            'back'=>'/images/bg1.png',
            'columntile'=>'/images/dekor.jpg',
            'decor'=>true,
        );
        return array($controller,$action);
    }
    
    public function onRender($output) {
        
        return $output;
    }
    
    public function onEndApp() {
        return true;
    }
    
}

?>
